package shop.order.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import shop.common.core.Result;

@FeignClient(name = "cart-service", path = "/api/carts")
public interface RemoteCartService {

    @DeleteMapping("/delete/{userId}/{productId}")
     Result removeByUserIdAndProductId(@PathVariable("userId") String userId, @PathVariable("productId") String productId);
}
